cmake_minimum_required(VERSION 2.8)

project(phantom)

set (HEADERS
	_begin.classdef.h
	_end.classdef.h
	_global.classdef.h
	_kernel.noclassdef.h
	_user_begin.classdef.h
	_user_end.classdef.h
	def_alias.h
	def_cfunctions.h
	def_config.h
	def_connection.h
	def_console.h
	def_container.h
	def_custom.h
	def_exceptions.h
	def_export.h
	def_extension.h
	def_fwd.h
	def_jit.h
	def_macros.h
	def_math.h
	def_memory.h
	def_modules.h
	def_reflection.h
	def_reflection_dynamic.h
	def_reflection_static.h
	def_serialization.h
	def_statechart.h
	def_t_content_type_of.h
	def_traits.h
	def_types.h
	def_util.h
	jit.h
	Object.classdef.h
	Object.h
	phantom.h
	variant.h
	)

set (SOURCES
	# _pch.cpp precompiled header
	def_console.cpp
	def_jit.cpp
	def_memory.cpp
	def_reflection.cpp
	Object.cpp
	phantom.cpp
	variant.cpp
	)

set(CMAKE_LIBRARY_OUTPUT_PATH lib)

add_library(phantom STATIC ${HEADERS} ${SOURCES})
#add_library(phantom SHARED ${HEADERS} ${SOURCES})

target_link_libraries(phantom )
